<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
        <link type="text/css" rel="stylesheet" media="all" href="../css/global.css" />
        <link type="text/css" rel="stylesheet" media="all" href="../css/global_color.css" />
        <style type="text/css">
        #sub{
        	background-image: url("../images/login_btn.png");
        	width: 125px;
        	height: 40px;
        	border-radius: 10px;
        }
        </style> 
	<!-- <script src="../js/jquery-3.3.1.js" type="text/javascript"></script>
	<script type="text/javascript">
	$(document).ready(function(){
		$("#sub").click(function(){
			$.ajax({
				url:'../LoginServlet',
				type:'GET',
				date:{
					"account":$("#account").val(),
					"pwd":$("#pwd").val(),
				},
				dateType:"text",
				success:function(result){
					alert(result)
				}
			})
			return false;
		})
	})
	</script> -->
    </head>
    <body class="index">
        <div class="login_box">
        	<form action = "../LoginServlet" method="get">
	            <table>
	                <tr>
	                    <td class="login_info">账号：</td>
	                    <td colspan="2"><input id="account" name="account" type="text" class="width150" /></td>
	                  <!--   <td class="login_error_info"><span class="required">30长度的字母、数字和下划线</span></td> -->
	                </tr>
	                <tr>
	                    <td class="login_info">密码：</td>
	                    <td colspan="2"><input id="pwd" name="pwd" type="password" class="width150" /></td>
	                  <!--   <td><span class="required">30长度的字母、数字和下划线</span></td> -->
	                </tr>
	                <!-- <tr>
	                    <td class="login_info">验证码：</td>
	                    <td class="width70"><input name="" type="text" class="width70" /></td>
	                    <td><img src="../images/valicode.jpg" alt="验证码" title="点击更换" /></td>  
	                    <td><span class="required">验证码错误</span></td>              
	                </tr>         -->    
	                 <tr>
	                    <td></td>
	                    <td class="login_button" colspan="2">
	                    	<input type = "submit" class = "login_button" id = "sub" value="">
	                    </td>    
	                    <td><span class="required">${error}</span></td>                
	                </tr>

	            </table>
	            
	          </form>
        </div>
<!--         <script src="../js/jquery-3.3.1.js" type="text/javascript"></script>
	<script type="text/javascript">
	$(document).ready(function(){
		$("#sub").click(function(){
			$.ajax({
				url:'../LoginServlet',
				type:'GET',
				data:{
					"account":$("#account").val(),
					"pwd":$("#pwd").val()
				},
				dataType:"text",
				success:function(result){
					if(result==true){
						window.location.href = 'index.jsp';
					}else{
						alert("错误");
					}
				}
			})
		})
	})
	</script> -->
    </body>
</html>
